package com.imooc.customer;

import com.imooc.controller.HelloController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 * @author laijun
 * @version 1.0
 * @date 2021/5/17 下午4:49
 */
@Component
public class Customer {

    final static Logger logger = LoggerFactory.getLogger(Customer.class);

    @JmsListener(destination = "sms.queue")
    public void receiveMsg(String text) {

        logger.info("接受到消息：" + text);

    }
}
